a=[]
def di(x):
    if x:
        a.insert(0,x%10)
        di(x//10)
    return a
print(di(123))
        
